package com.jgsu.sell.repository;

import com.jgsu.sell.dataobject.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 描述:
 * 商品主表
 *
 * @author lqd12
 * @create 2018-08-18 21:15
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster,String> {
    /**
     * 查询一个openid下的所有订单
     * @param buyerOpenid
     * @param pageable
     * @return
     */
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);
}